package com.example.layout_text1;



import android.os.Bundle;
import android.widget.TableLayout;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class TableActivity extends AppCompatActivity {
    protected TableLayout mTableLayout;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_table);
        mTableLayout = findViewById(R.id.table);
        mTableLayout.setColumnShrinkable(1, true);
        mTableLayout.setColumnStretchable(1, true);
        mTableLayout.setColumnCollapsed(1, true);
    }
}
